﻿
#if MAPEDITOR

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Folder
{
    public partial class InputDialog : Form
    {
        protected string textResult;
        public string TextResult
        {
            get { return textResult; }
        }

        public InputDialog()
        {
            InitializeComponent();
            textResult = string.Empty;
        }

        public void SetDialog(string caption, string question)
        {
            this.Text = caption;
            label1.Text = question;
            textResult = string.Empty;
        }

        private void button1_Click(object sender, EventArgs e)
        {
            textResult = textBox1.Text;
            DialogResult = DialogResult.OK;
        }

        private void button2_Click(object sender, EventArgs e)
        {
            DialogResult = DialogResult.Cancel;
        }

    }
}
    
#endif